//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#ifndef _DBRefRecord_h__
#define	_DBRefRecord_h__
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#include "libraries.h"
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
class DBRefRecord {
  
  private:
    
    String*           idCode;
    char              chainID;
    int               seqBegin;
    int               seqEnd;
    
    String*           toString;
    
  protected:
    
    void              CleanData (void);
    
  public:
    
    DBRefRecord ();
    DBRefRecord (const DBRefRecord&);
    DBRefRecord (const DBRefRecord*);

    ~DBRefRecord ();

    void              IdCode (String*);
    void              ChainID (char);
    void              SeqBegin (int);
    void              SeqEnd (int);
    
    String*           IdCode (void);
    char              ChainID (void);
    int               SeqBegin (void);
    int               SeqEnd (void);
    
    bool              ReadFromString (String*);
    bool              ReadFromString (char*);
    
    DBRefRecord operator= (const DBRefRecord&);
    
};
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#endif
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//

